﻿using SqlSugar;
namespace Magic.Core;

/// <summary>
/// 系统配置
///</summary>
[SugarTable("sys_config")]
public class SysConfig
{
    /// <summary>
    ///  
    ///</summary>
     [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
     public int Id { get; set; }
    /// <summary>
    /// 变量名 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="name"    )]
     public string Name { get; set; }
    /// <summary>
    /// 分组 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="group"    )]
     public string Group { get; set; }
    /// <summary>
    /// 变量标题 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="title"    )]
     public string Title { get; set; }
    /// <summary>
    /// 变量描述 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="tip"    )]
     public string Tip { get; set; }
    /// <summary>
    /// 类型:string,number,radio,checkbox,switch,textarea,array,datetime,date,select,selects 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="type"    )]
     public string Type { get; set; }
    /// <summary>
    /// 变量值 
    ///</summary>
     [SugarColumn(ColumnName="value"    )]
     public string Value { get; set; }
    /// <summary>
    /// 字典数据 
    ///</summary>
     [SugarColumn(ColumnName="content"    )]
     public string Content { get; set; }
    /// <summary>
    /// 验证规则 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="rule"    )]
     public string Rule { get; set; }
    /// <summary>
    /// 扩展属性 
    /// 默认值: 
    ///</summary>
     [SugarColumn(ColumnName="extend"    )]
     public string Extend { get; set; }
    /// <summary>
    /// 允许删除:0=否,1=是 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="allow_del"    )]
     public byte AllowDel { get; set; }
    /// <summary>
    /// 权重 
    /// 默认值: 0
    ///</summary>
     [SugarColumn(ColumnName="weigh"    )]
     public int Weigh { get; set; }
}
